<template>
  姓名:<input type="text" v-model="salaryInfo.userName" /><br />
  薪水:<input type="number" v-model="salaryInfo.salary" /><br />
  {{ salaryInfo }} <br />
</template>
<script lang="ts">
export default {
  name: 'MysalaryInfo',
}
</script>
<script setup lang="ts">
import type { SalaryInfo } from '@/types/salaryInfo'
// defineProps(['salaryInfo'])
defineProps<{ salaryInfo: SalaryInfo }>() //泛型，组件的Props方法，
</script>
<style></style>
